<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Start</title>
        <link rel="stylesheet" href="css/mycss.css" type="text/css"></link>
    </h:head>

    <body style="background-color:#F0FFFF"></body>

    <h:body>
        <h:form>
               
            <em><font size="7"><h:outputText style="color: orange; position: absolute;
                                             top: 150px; left: 400px;" value="Welcome to nyquist-meteocal"/></font></em>
            <h5><font size="4">Logged user: #{userBean.name}</font></h5><br/>
            #{weatherBean.checkTomorrowRainy()}<br/>
            #{weatherBean.checkBadWeather()}<br/>

            <p:commandButton value="Go to your Homepage" action="#{counter.count()}"
                                     style="width:250px;height:70px;background-color:#90A4FD;position: absolute;
                                     top: 300px; left: 600px"/>
                
            <h:commandLink action="#{loginBean.logout()}" value="Logout" style="position: absolute;
                           top: 10px; right: 20px;"/>

        </h:form>
    </h:body>
</html>
